package com.wzy.config;

import com.baomidou.mybatisplus.extension.plugins.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wzy
 * @Date: 2022/1/24 14:03
 * @Description:
 */
@Configuration
public class MybatisPlusConfig {

    /**
     *  mybatis-plus sql执行效率插件【生产环境可以关闭】
     * @return
     */
   /* @Bean
    public PerformanceInterceptor performanceInterceptor() {
        return new PerformanceInterceptor();
    }*/

    /**
     * 分页插件
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
